﻿'         This file is Copyright © 2008-2012 Billy O'Neal and Aommaster
'                            All rights reserved.
'
' This file is released under the 2-Clause BSD license, included in LICENSE.TXT
'                           and on the MHWT website
Imports System.ComponentModel

<System.Serializable()> Friend Class DataFrontend
    Public CanDatabase As BindingList(Of Speech)
    Public Options As GlobalOptions
    Public Topics As BindingList(Of Topic)
    Public Archive As BindingList(Of Topic)
    Sub New()
        CanDatabase = GlobalData.canDatabase
        Options = GlobalData.options
        Topics = GlobalData.openTopics
        Archive = GlobalData.archive
    End Sub
    Sub Writeback()
        GlobalData.canDatabase = CanDatabase
        GlobalData.options = Options
        GlobalData.openTopics = Topics
        GlobalData.archive = Archive
    End Sub
End Class
